<template>
	<view class="main">
		<view class="top">
			<text class="logo">登录</text>
			<text class="title">欢迎来到BG共享电车</text>
		</view>
		<view class="content">
			<text class="lable">电话号码</text>
			<view class="input">
				<input type="text" value="" placeholder="请输入手机号码"/>
			</view>
			<button class="login" type="primary" @click="logins">
				<text class="login_lable">登录</text>
			</button>
		</view>
		<view class="third_party">
			<text class="ll">第三方登录</text>
			<view class="ii">
				<u-icon name="weixin-fill" color="#06C160" size='40'></u-icon>
			</view>
		</view>
		<view class="bottom_main">
			通过创建和/或使用帐户同意我们的条款&条件
		</view>
	</view>
</template>

<script>
	// import JSEncrypt from "@/node_modules/jsencrypt/bin/jsencrypt"
	import {test, login} from "@/request/api.js"
	export default {
		data() {
			return {
				password: '123456',
				key: `
				-----BEGIN PUBLIC KEY-----
				MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn4Vv97HFj7PR3VX5kUs2
				8sVQVT0elnxrns3HtW6y2fpnad+XMJb3dqLsfBPM8LR9C9cAZ21DvijD5fIbeIOH
				/ADfN7IDghd7+4Tx4h8iY8M9olaFSVrHLHaBOUjS89lIEgRdMIItqTxDm3rOAhks
				75s+xFOKt1jENC6DPT9XiNe5uTJe/xkZjQm59jb/r+yi9HyYIN4nwgiWbuFhLG3i
				BWmuMgNoxMDJDMufDhrEwiSLDsBEtXcv4igXLkvkprKAQ0j3UM35hgxZ+2ltQ34k
				XEOQdFlt72DG8Dyut27rvVXhZqHGeJyEO70juCxoH9YIRmW1PmspgBoc1UpSSJtb
				dwIDAQAB
				-----END PUBLIC KEY-----
				`
			}
		},
		methods: {

			logins(){
				login({
					'username': 'admin',
					'password': 'admin'
				})
				test()
			}
		}
	}
</script>

<style scoped>
.main{
	padding: 10px;
	padding-left: 20px;
	padding-right: 20px;
}
.top {
	display: flex;
	flex-direction: column;
	
}
.logo {
	font-size: 30px;
	color: #000;
	font-family: 'HarmonyOS Sans SC';
}
.title {
	margin-top: 10px;
	font-family:'HarmonyOS Sans SC';
	font-size: 18px;
	color: #505257;
}
.content {
	margin-top: 50px;
}
.lable {
	position: relative;
	left: 10px;
	font-size: 14px;
	color: #939798;
}
.input {
	border: 1px solid #585858;
	margin-top: 10px;
	padding: 5px;
	padding-left: 10px;
	border-radius: 20px;
	background-color: #F4F5F5;
}
input {
	min-height: 50px;
	background-color: #F4F5F5;
}
.login {
	position: relative;
	margin-top: 40px;
	width: 100%;
	height: 60px;
	border-radius: 20px;
	background-color: #F7C60D;
}
.login_lable {
	color: #000000;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.third_party {
	position: relative;
	margin-top: 50px;
}
.third_party {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 80px;
}
.ll {
	color: #09101D;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
}
.ii {
	color: #06C160;
	font-size: 24px;
	margin-top: 20px;
}
.bottom_main {
	width: 100%;
	text-align: center;
	font-size: 11px;
	position: absolute;
	bottom: 10px;
}
</style>
